package ma.ensao.evalmetrics.controller.metrics;

import java.io.File;
import java.io.IOException;

import ma.ensao.evalmetrics.model.Components;
import ma.ensao.evalmetrics.util.javaProjects.ComponentsCalc;

public class ComponentsManager {
	Components comp = new Components();

	public Components read(File file) throws IOException {
		ComponentsCalc cC = new ComponentsCalc(file);
		comp.setNbAttributs(cC.getNbAttributs());
		comp.setNbClasses(cC.getNbClasses());
		comp.setNbMethodes(cC.getNbMethodes());
		return comp;
}
	
	public Components getComp() {
		return comp;
	}

	public void setComp(Components comp) {
		this.comp = comp;
	}
	
	
}
